export default new Vuex.Store({
	state:{
        user : null, //用户信息
        dict : null, //数据字典
   },
   	mutations : {
   		setUser : function(state,user) {
   			state.user = user;
   		},
   		setDict : function(state,dict) {
   			state.dict = dict;
   		},
   		clearAll : function(state) {
   			state.user = null;
   			state.dict = null;
   		}
	}
});


